<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .box {
        width: 200px;
        height: 200px;
        border-radius: 15px;
        background-color: skyblue;
        animation: run 5s linear 0s infinite;
    }

    @keyframes run {

        /* 起始点 */
        0% {
            transform: translate(0px, 0px);

        }

        /* 右移500px */
        25% {
            transform: translate(500px, 0px);

        }

        /*x下移500px*/

        50% {
            transform: translate(500px, 500px);
        }

        /* 左移500px */
        75% {
            transform: translate(0px, 500px);
        }

        /* 上移500px */
        100% {
            transform: translate(0px, 0px);
        }
    }
</style>

<body>
    <div class="box"></div>

</body>

</html>